/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package milkyway.hightech.entry;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import milkyway.hightech.timer.TimeEmitter;

/**
 *
 * @author michael
 */
public class AccountStatement extends JFrame
{
    private JTextArea txt;
	    
    public AccountStatement()
    {
	txt = new JTextArea();
	txt.setFont(new Font("Monospaced", Font.BOLD, 14));
	
	JScrollPane sp = new JScrollPane(txt);
	sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
	
	this.setTitle("Account Statement");
	this.setLocation(300, 0);
	this.setIconImage(new ImageIcon(TimeEmitter.class.getResource("icon.png")).getImage());
	this.setSize(1010, 400);
	this.setResizable(false);
	this.setDefaultCloseOperation(EXIT_ON_CLOSE);
	this.add(sp, BorderLayout.CENTER);
	this.setVisible(true);
	txt.setBackground(new Color(0,0,0,255));
	txt.setForeground(new Color(15,184,255,255));
    }
    
    public void clearTXT()
    {
	txt.setText(null);
    }
    
    public void writeTXT(String txt)
    {
	this.txt.append(txt);
    }
}
